package com.lt.experiment04.mission04;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment04.mission04
 * @ClassName Test
 * @Description to do
 * @date 2021/11/2 11:46
 */
public class Test {
    public static void main(String[] args) {
        //最简单的手机
        Phone p = new SimplePhone();
        p.receiveCall();
        System.out.println("-------------------");
        //振动手机
        Phone p1 = new JarPhone(p);
        p1.receiveCall();
        System.out.println("-------------------");
        //高级手机
        Phone p2 = new ComplexPhone(p1);
        p2.receiveCall();
        System.out.println("-------------------");


    }
}
